<?php


namespace app\api\model;


class Adver extends BaseModel {
    public function getAdverList($page,$pagesize=''){
        $pagesize = $pagesize ? $pagesize : $this->pagesize;
        $start = ( $page - 1 ) * $pagesize;
        return self::order('id desc')->limit($start,$pagesize)->select();
    }
}